package com.theta.gateway.infra.routecfg.model.dataobject.response;

import java.util.LinkedHashMap;
import java.util.Map;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

/**
 * 路由断言信息
 * @author theta
 *
 */
@Getter
@Setter
@Builder
public class RouteInfoPredicateDO {
	
	private String name;
	
	private Map<String, String> args;
	
	/**
	 * 追加断言配置
	 * @param key
	 * @param val
	 */
	public RouteInfoPredicateDO addArgs(String key,String val) {
		if(args==null)this.args=new LinkedHashMap<String, String>();
		this.args.put(key, val);
		return this;
	}
	
	

}
